#ifndef ListSelectorDialog_First
#define ListSelectorDialog_First
#ifdef __GNUG__
#pragma interface
#endif

#include "Dialog.h"

class ObjGridView;
class Scroller;
class SeqCollection;

//---- ListSelectorDialog ------------------------------------------------------

class ListSelectorDialog : public Dialog {
public:
	MetaDef(ListSelectorDialog);
	ListSelectorDialog(const char *name);
	~ListSelectorDialog();

	Object *SelectObject(SeqCollection *list);
	static Object *Select(SeqCollection *list, const char *name);

	virtual VObject *MakePart(int which);

protected:
	VObject *DoMakeControls();
	VObject *DoMakeActions();
	void DoSetup();
	void Control(int id, int p, void *v);
	void InputKbd(Token &t);
	void DoSetDefaults();

private:
	ObjGridView *listView;
	SeqCollection *list;
	Scroller *scroller;
};
		
#endif
